Best way to trigger editing and dynamically show editing features? [on hold]

Posted by Tim Marshall on Pro Webmasters See other posts from Pro Webmasters or by Tim Marshall
Published on 2014-06-08T07:56:59Z Indexed on 2014/06/08 9:41 UTC
Read the original article Hit count: 218

Filed under:

Page In Question: http://rafflebananza.com/admin/StatisticalData/expenses/expenses.html

Hiya Everyone,

On my page, I have an 'Actions' drop down to the top-right hand side of the page. This actions drop down I would like to have an action to 'Enable Editing'. Upon clicking to enable editing, I would like a PHP variable modified from 'EnableEditing = false' to 'EnableEditing = true'.

Why I would like to use PHP maybe questionable, here is why I would like to use PHP under my understanding to clarify;

Sections on my page will show to different administrators depending on their level. Upon enabling editing mode, certain contents will then dynamically.

<?php 
    if ($_SESSION['user_level_status'] < 2) {
        if ($editing = enabled) {
            show this
        }
        else {
            show this
        }
    }
?>

Something similar to this, I'm new at PHP so this may look incorrect. The question really is, is PHP the correct language to use to trigger editing and how can I do this please?

Best Regards, Tim

© Pro Webmasters or respective owner

Related posts about php